//
// Created by Admin on 2024/1/3.
//

#include <iostream>
#include "RtpParser.h"
using namespace std;

int main(void)
{
    RtpParser parser(false);

    char packet[1024];
    FILE* fp = fopen("E:\\myprojects\\RtpParser\\x64\\Debug\\tcp_rtp_raw", "rb+");
    size_t n, i = 0;
    while (!(feof(fp)))
    {
        int n = fread(packet + i, 1, sizeof(packet), fp);
        parser.input((const char*)packet, n);
    }
    fclose(fp);
    return 0;
}